package com.springboot.blog.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public class LayPage<T> extends Page<T> {
    public LayPage() {
        super();
    }

    public LayPage(long current, long size) {
        super(current, size, 0L);
    }

    public LayPage(long current, long size, long total) {
        super(current, size, total);
    }

    public LayPage(long current, long size, boolean isSearchCount) {
        super(current, size, 0L, isSearchCount);
    }

    public LayPage(long current, long size, long total, boolean isSearchCount) {
        super(current,size,total,isSearchCount);
    }

    public LayResponse getLayResponse(){
        return new LayResponse(total,records).success("成功!");
    }
}
